<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

	<h:dataTable value="#{commandeBean.commandes}" border="1" var="commande">
	
		<h:column>
			<f:facet name="header">idClient</f:facet>
	   		#{commande.acheteur.id}
	   	</h:column>
	   	
	   	<h:column>
			<f:facet name="header">idProduit</f:facet>
	   		#{commande.produit.reference}
	   	</h:column>
	   	
	   	<h:column>
			<f:facet name="header">Date</f:facet>
			<h:outputText value="#{commande.date}">
				<f:convertDateTime type="date" pattern="dd/MM/yyyy HH:mm:ss"/>
			</h:outputText>
		</h:column>
	   	
	   	<h:column>
			<f:facet name="header">Quantité</f:facet>
	   		#{commande.quantity}
	   	</h:column>	   	
	
	</h:dataTable>
	
</ui:composition>